/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
    }
}


class Person{
    public String name;
    public int age;
    //系统自己提供的构造方法如下，可以不写
//    public void Person(){
//
//    }
    //自己提供带参数的构造方法
//    public Person(String name){
//        this.name = name;//此处this后面会讲述，此处先用就是给name赋值
//    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public  void main(){
       // System.out.println(p1.name);
    }

}
